package com.back.campus_back.service;

import com.back.campus_back.domain.Collect;
import com.back.campus_back.domain.Goods;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2021-04-17
 */
public interface CollectService extends IService<Collect> {
    //查看收藏商品的信息
    public List<Goods> findAllCollect(@Param(value = "u_id")int u_id);

    //个人添加收藏商品
    public String collectGoods(@Param(value = "u_id")int u_id,@Param(value = "g_id")int g_id);


    //个人删除收藏商品
    public String cancelCollect(@Param(value = "u_id")int u_id,@Param(value = "g_id")int g_id);



}
